<template>
	<view class="container">
		<view class="load_Image" v-if="urlImage !== ''">
			<image class="load_images" :src="urlImage" mode=""></image>
		</view>
		<view class="load_Image" v-else-if="urlImage == ''">
			<view class="load_txt">
				<view class="load_tb">
					<image src="../../../static/image/business/10.png" mode=""></image>
				</view>
				<view class="load_wz">
					上传现场照片
				</view>
			</view>
			<view class="xian"></view>
			<view class="address">
				<view class="a_tb">
					<image src="/static/image/server/11.png" mode=""></image>
					<view class="a_wz">
						山东省青岛市城阳区正阳东路1238号前桃林幼儿园
					</view>
				</view>
				<view class="a_tb">
					<image src="/static/image/server/12.png" mode=""></image>
					<view class="a_wz">
						2023-11-20 14:20
					</view>
				</view>
			</view>
		</view>

		<view class="loadbtn">
			<button class="btn" @click="shoot">拍照</button>
			<button class="btn" @click="photo">相册</button>
		</view>
		<button class="loading" @click="signImage">确认上传</button>
	</view>
</template>


<script>
	import {
		loadingImage
	} from "@/common/mixins/uploading/loadImage.js";

	export default {
		mixins: [loadingImage],
	}
</script>

<style scoped lang="scss">
	@import url('../../../common/sass/all/all.scss');

	.load_Image {
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		width: 676rpx;
		height: 391rpx;
		background-color: #ffffff;
		border-radius: 20rpx;
		
		.load_images{
			width: 676rpx;
			border-radius: 20rpx;
			height: 391rpx;
		}

		.load_txt {
			height: 240rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;

			.load_tb {
				width: 80rpx;
				height: 72rpx;

				image {
					width: 80rpx;
					height: 72rpx;
				}
			}

			.load_wz {
				font-weight: 400;
				font-size: 26rpx;
				color: #3E3A39;
			}
		}

		.xian {
			position: relative;
			height: 1rpx;
			width: 592rpx;
			background-color: #dfdfdf;
		}

		.address {
			display: flex;
			justify-content: center;
			flex-direction: column;
			height: 110rpx;

			.a_tb {
				width: 592rpx;
				display: flex;
				flex-direction: row;
				align-items: center;
				line-height: 40rpx;

				image {
					width: 18rpx;
					height: 27rpx;
				}

				.a_wz {
					font-weight: 400;
					font-size: 20rpx;
					color: #7D7D7D;
				}
			}
		}
	}

	.loadbtn {
		width: 679rpx;
		display: flex;
		flex-direction: row;
		justify-content: space-around;

		.btn {
			width: 326rpx;
			height: 91rpx;
			line-height: 91rpx;
			background: linear-gradient(to bottom right, rgba(253, 255, 255, 1), rgba(167, 255, 255, 1));
			border-radius: 15rpx;
			font-weight: 400;
			font-size: 32rpx;
			color: #3E3A39;
			letter-spacing: 20rpx;
			margin-top: 27rpx;
		}
	}

	.loading {
		width: 678rpx;
		height: 91rpx;
		line-height: 91rpx;
		background: linear-gradient(to bottom right, rgba(19, 183, 163, 1), rgba(1, 126, 136, 1));
		border-radius: 15rpx;
		margin-top: 27rpx;
		font-weight: 400;
		font-size: 32rpx;
		color: #FFFFFF;

	}
</style>